package com.jeez.common.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.util.Date;

/**
 * 数据Entity类
 * @author Felix
 *
 * @param <T>
 */
@Getter
@Setter
@MappedSuperclass
public abstract class DataEntity<T> extends BaseEntity<T> {

	private static final long serialVersionUID = -8279806461521581022L;

	/**
	 * 创建人
	 */
	@Column(name = "create_user")
	private String createUser;
	
	/**
	 * 创建时间
	 */
	@Column(name = "create_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	
	/**
	 * 修改人
	 */
	@Column(name = "modify_user")
	private String modifyUser;
	
	/**
	 * 修改时间
	 */
	@Column(name = "modify_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date modifyTime;
	
	/**
	 * 删除标记
	 */
	@Column(name = "del_flag")
	private String delFalg;
	
}
